package com.lajiaomian.springbootruijiwaimai.common;

import com.lajiaomian.springbootruijiwaimai.pojo.Employee;

/**
 * @author lajiaomian
 * @create 2022-08-12-21:57
 */
public class BaseContext {
    public static ThreadLocal<Long> threadLocal = new ThreadLocal<>();
    public static void setCurrId(Long id){
        threadLocal.set(id);
    }

    public static Long getCurrId(){
        return threadLocal.get();
    }
}
